//---------------------------------------------------------------------------

#ifndef t_normaljobformH
#define t_normaljobformH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.Grids.hpp>
//---------------------------------------------------------------------------
class TNormalJobForm : public TForm
{
__published:	// IDE-managed Components
   TPageControl *PageControl1;
   TTabSheet *TabSheet1;
   TLabel *Label1;
   TLabel *Label2;
   TLabel *Label3;
   TLabel *Label4;
   TLabel *Label5;
   TLabel *Label6;
   TLabel *Label8;
   TLabel *Label9;
   TLabel *Label10;
   TLabel *Label7;
   TLabel *Label11;
   TLabel *Label12;
   TLabel *Label13;
   TLabel *Label14;
   TLabel *Label15;
   TLabel *Label16;
   TEdit *EditName;
   TEdit *EditCommand;
   TMemo *MemoDescription;
   TComboBox *ComboBoxSpecialDate;
   TEdit *EditConditionFile;
   TEdit *EditRestoreCommand;
   TCheckBox *CheckBoxCondNot;
   TEdit *EditAdditionalLog;
   TEdit *EditJobTrigger;
   TEdit *EditPartitionFile;
   TCheckBox *CheckBoxExclusive;
   TComboBox *ComboBoxAlarmTimeType;
   TEdit *EditAlarmTime;
   TEdit *EditPriority;
   TEdit *EditAutoRerun;
   TComboBox *ComboBoxEnlarge;
   TCheckBox *CheckBoxAnchor;
   TEdit *EditParallelJobNumber;
   TEdit *EditTag;
   TEdit *EditRunningGroup;
   TTabSheet *TabSheet2;
   TLabel *Label18;
   TStringGrid *GridResource;
   TEdit *EditResource;
   TButton *ButtonAdd;
   TButton *ButtonRemove;
   TButton *ButtonClear;
   TCheckBox *CheckBoxReadOnlyFlag;
   TTabSheet *TabSheet3;
   TLabel *Label17;
   TLabel *Label19;
   TStringGrid *GridExternJob;
   TEdit *EditExternGroup;
   TButton *ButtonAdd2;
   TButton *ButtonRemove2;
   TButton *ButtonClear2;
   TEdit *EditExternJob;
   TTabSheet *TabSheet4;
   TLabel *Label20;
   TLabel *Label21;
   TLabel *Label22;
   TLabel *Label23;
   TLabel *Label24;
   TEdit *EditLoopStartTime;
   TEdit *EditLoopEndTime;
   TEdit *EditLoopInterval;
   TEdit *EditLoopCount;
   TComboBox *ComboBoxLoopConditionVariable;
   TButton *ButtonOk;
   TButton *ButtonCancel;
   TLabel *Label25;
   TComboBox *ComboBoxBusinessType;
   void __fastcall ButtonOkClick(TObject *Sender);
   void __fastcall ButtonCancelClick(TObject *Sender);
   void __fastcall ButtonAddClick(TObject *Sender);
   void __fastcall ButtonRemoveClick(TObject *Sender);
   void __fastcall ButtonClearClick(TObject *Sender);
   void __fastcall ButtonAdd2Click(TObject *Sender);
   void __fastcall ButtonRemove2Click(TObject *Sender);
   void __fastcall ButtonClear2Click(TObject *Sender);
private:	// User declarations
   void __fastcall GridResourceAssign();
   void __fastcall GridExternJobAssign();
   bool OkFlag;
   HStageJob *FStage;
   HStageJob::HInfo Info;
   set<UTF8String> ResourceSet;
   set<UTF8String> ExternJobSet;
public:		// User declarations
   __fastcall TNormalJobForm(TComponent* Owner);
   bool __fastcall Edit(HStageJob *Stage);
};
//---------------------------------------------------------------------------
extern PACKAGE TNormalJobForm *NormalJobForm;
//---------------------------------------------------------------------------
#endif
